package com.zhengbing.tj.design.template;

/**
 * 模板方法模式Demo测试入口
 *
 * @author zhengbing
 * @date 2025-07-16
 */
public class TemplateDemoMain {
    public static void main(String[] args) {
        System.out.println("--- 测试 ConcreteA ---");
        AbstractTemplate a = new ConcreteA();
        a.execute();

        System.out.println("\n--- 测试 ConcreteB ---");
        AbstractTemplate b = new ConcreteB();
        b.execute();

        System.out.println("\n--- 测试 ConcreteC ---");
        AbstractTemplate c = new ConcreteC();
        c.execute();
    }
} 